doRecord = compile preprocessFileLineNumbers "record.sqf";
cancelRecord = compile preprocessFileLineNumbers "cancelRecord.sqf";

record = false;
player addAction ["record", "record.sqf"];
player addAction ["cancel", "cancelRecord.sqf"];

hint "Recording initialized";

